package com.itheima.night;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;

public class Demo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class clazz = Class.forName("com.itheima.afternoon.Student");
        Field[] fields = clazz.getDeclaredFields();
        for (Field field : fields) {
            System.out.println(field);
        }
        System.out.println("--------------------------------------------------------------");
        Constructor[] constructors = clazz.getDeclaredConstructors();
        for (Constructor constructor : constructors) {
            System.out.println(constructor);
        }
    }
}
